/**
 * Created by jiangtao on 16/5/4.
 */
$(function(){
    var dom = $('body');
    dom.on('click','.all-server-nav li',selectItem);
    function selectItem(){
         var self = this;
         $('.all-server-nav li').each(function(index,dom){
             if(self == dom) {
                 $(this).addClass('active');
             } else {
                 $(this).removeClass('active');
             };
         });
    };






});